package service.univtype;

import java.util.List;

import vo.UnivtypeVO;
import dao.univtype.UnivtypeDAO;

public class UnivtypeServiceImpl implements UnivtypeService{

	private UnivtypeDAO univtypeDAO;

	public void setUnivtypeDAO(UnivtypeDAO univtypeDAO) {
		this.univtypeDAO = univtypeDAO;
	}

	@Override
	public List<UnivtypeVO> getUnivtypeList() throws Exception {
		return univtypeDAO.getUnivtypeList();
	}

	@Override
	public void registerUnivtype(String univtype_name) throws Exception {
		univtypeDAO.registerUnivtype(univtype_name);
	}

	@Override
	public void updateUnivtype(UnivtypeVO param) throws Exception {
		univtypeDAO.updateUnivtype(param);
	}

	@Override
	public void deleteUnivtype(int univtype_no) throws Exception {
		univtypeDAO.deleteUnivtype(univtype_no);
	}
}
